#ifdef LOGRECORD_EXPORTS
#define LOGRECORDER_API __declspec(dllexport)
#else
#define LOGRECORDER_API __declspec(dllimport)
#endif // LOGRECORDER_EXPORTS
/*!
 * \class LogFormat
 *
 * \brief 日志格式化
 *
 * \author Bryceyam
 * \date ʮһ�� 2025
 */
#pragma once
#include <string>
#include "LogRecord/globle.h"

class TimeInfo;

class LOGRECORDER_API LogFormat
{
public:
	/*
	*@brief 格式化
	*@param[in]  level日志等级 log日志内容 file日志所在文件 line日志所在行数
	*@param[out] 
	*@return     
	*/
	virtual std::string format(const std::string& level, const std::string& log, const std::string& file, int line);

	LogFormat();

	virtual ~LogFormat();

private:
	TimeInfo* mTimeInfo;
};

